home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / new device drivers / PCI Driver Sample / NCR_DriverProject / MakeFile < prev    next >
Encoding:
Makefile  |  1995-07-24  |  6.5 KB  |  2 lines  |  [TEXT/MPS ]

  1. MakeFileTEXTMPS 3»¨9¬`¨9¬`ÅÅŒ∫####
  2. #### Warning
  3. #### This does not currently compile on my (heavily modified) MPW
  4. #### It may need minor changes to work. Use the MetroWerks build
  5. #### for now.
  6. ####
  7. #
  8. # NCRScsiDriver
  9. # Copyright © 1994-95 Apple Computer Inc. All rights reserved.
  10. # This MakeFile builds the NCRDriver sample PCI device driver and
  11. # the resource file needed for the MetroWerks compilation.
  12. # Note: all compilations are Power PC Native.
  13. #
  14. # Before building this driver, build the LogLibrary and copy the shared
  15. # library to the Extensions folder in the current System Folder. Also,
  16. # make sure that the parent folder contains the current LogLibrary.h.
  17. # Do it today, you'll be happy for it tomorrow.
  18. #
  19. Src                =    ":Src:"        # Sources in Src folder
  20. Obj                =    ":Obj:"        # Objects in Obj folder
  21. LogLibrarySrc    =    "::"        # Log Library header source (Parent)
  22. LogLibraryLib    =    "{Extensions}"
  23.  
  24. #
  25. # This Makefile can build drivers for the NCR53C825 or NCR53C815
  26. # devices, thanks to the magic of Makefile definitions. The
  27. # following must track values in NCR53C825.h
  28. #
  29. NCR53C825        =    "1"
  30. NCR53C815        =    "2"
  31. NCR8250S        =    "3"
  32.  
  33. #
  34. # PCICIncludes    Defined by UserStartup•PCI in System Preferences
  35. # PCILibraries    Defined by UserStartup•PCI in System Preferences
  36. #
  37.  
  38. Objects            =                            ∂
  39.         {Obj}DriverDoDriverIO.c.o            ∂
  40.         {Obj}DriverDebugSupport.c.o            ∂
  41.         {Obj}DriverGestaltHandler.c.o        ∂
  42.         {Obj}DriverPCIBusUtilities.c.o        ∂
  43.         {Obj}DriverPrepMemoryInit.c.o        ∂
  44.         {Obj}DMATransfer.c.o                ∂
  45.         {Obj}GetDeviceLogicalAddress.c.o    ∂
  46.         {Obj}GetDevicePowerInfo.c.o            ∂
  47.         {Obj}InitializeInterrupts.c.o        ∂
  48.         {Obj}ManageNVRAMProperty.c.o        ∂
  49.         {Obj}NameRegistryUtilities.c.o        ∂
  50.         {Obj}NCRChipManager.c.o                ∂
  51.         {Obj}NCRRunScript.c.o                ∂
  52.         {Obj}NCRScriptManager.c.o            ∂
  53.         {Obj}NCRStartScript.c.o                ∂
  54.         {Obj}PrepMemoryUtilities.c.o        ∂
  55.         {Obj}PublishDriverDebugInfo.c.o        ∂
  56.         {Obj}PublishInitFailureMsg.c.o
  57.  
  58. Headers            =                            ∂
  59.         {Src}NCR53C825.h                    ∂
  60.         {Src}NCRDriver.h                    ∂
  61.         {Src}NCRDriverPrivate.h                ∂
  62.         {Src}NCRDriverPrototypes.h            ∂
  63.         {Src}DMATransfer.h                    ∂
  64.         {Src}LogLibrary.h
  65.  
  66. #
  67. # Directory Dependencies. Sources are in the {Src} subdirectory,
  68. # Objects in the {Obj} subdirectory.
  69. #
  70. {Obj}                ƒ    {Src}
  71.  
  72. #
  73. # Compiler option configuration
  74. #
  75. SymOpt                  = ON
  76. PPCCOpt                 = off
  77.  
  78. .c.o ƒ .c                                        ∂
  79.         {Headers}
  80.     PPCC                                        ∂
  81.         -appleext on                            ∂
  82.         -sym {SymOpt}                            ∂
  83.         -opt {PPCCOpt}                            ∂
  84.         -shared_lib_export on                    ∂
  85.         -w off                                    ∂
  86.         -D MPW=1                                ∂
  87.         -D NoASM                                ∂
  88.         -D RS6000=0                                ∂
  89.         -D powerpc=1                            ∂
  90.         -D interface_glue                        ∂
  91.         -D "HARDWARE={Compilation_Hardware}"    ∂
  92.         -i "{PCICIncludes}"                        ∂
  93.         -i "{CIncludes}"                        ∂
  94.         -export_list {Obj}NotUsedExportList        ∂
  95.         -o {TargDir}{Default}.c.o                ∂
  96.         {DepDir}{Default}.c
  97.  
  98. #
  99. # Build the MetroWerks resources
  100. #
  101. MetroWerks ƒ                                    ∂
  102.     {Src}LogLibrary.h                            ∂
  103.     "NCRDriver.Δ.rsrc"
  104.         echo "MetroWerks resources created"
  105.  
  106. #
  107. # Build the Driver (MPW PowerPC native)
  108. #
  109.  
  110. "NCRDriver MPW_825"    ƒƒ                            ∂
  111.             MetroWerks                            ∂
  112.             Makefile                            ∂
  113.             {Headers}                            ∂
  114.             {Objects}
  115.     echo "" >{Obj}NotUsedExportList
  116.     Compilation_Hardware = {NCR53C825}
  117.     touch "{Src}NCR53C825.h"            # Force recompile
  118.     PPCLink                                        ∂
  119.         -sym {SymOpt}                            ∂
  120.         -xm s                                    ∂
  121.         -main DoDriverIO                        ∂
  122.         -export DoDriverIO                        ∂
  123.         -export TheDriverDescription            ∂
  124.         -export CFMInitialize                    ∂
  125.         -export CFMTerminate                    ∂
  126.         {Objects}                                ∂
  127.         "{LogLibraryLib}"LogLibrary                ∂
  128.         "{PCILibraries}"DriverServicesLib        ∂
  129.         "{PCILibraries}"DriverLoaderLib            ∂
  130.         "{PCILibraries}"NameRegistryLib            ∂
  131.         "{PCILibraries}"PCILib                    ∂
  132.         "{PPCLibraries}"PPCCRuntime.o            ∂
  133.         -o {Obj}NCRDriver.xcoff
  134.     MakePEF                                        ∂
  135.         {Obj}NCRDriver.xcoff                    ∂
  136.         -b                                        ∂
  137.         -i CFMInitialize                        ∂
  138.         -t CFMTerminate                            ∂
  139.         -l "{PCILibraries}"DriverServicesLib    ∂
  140.         -l "{PCILibraries}"NameRegistryLib        ∂
  141.         -l "{PCILibraries}"PCILib                ∂
  142.         -o {targ}                                ∂
  143.         -ft ndrv -fc PSSD
  144.  
  145. "NCRDriver MPW_825"    ƒƒ                            ∂
  146.             Makefile                            ∂
  147.             {Headers}                            ∂
  148.             {Src}NCRDriver.r                    ∂
  149.             "NCRDriverIcons.rsrc"
  150.     Rez                                            ∂
  151.         -o {targ}                                ∂
  152.         -append                                    ∂
  153.         -t ndrv                                    ∂
  154.         -c PSSD                                    ∂
  155.         -i "{CIncludes}"                        ∂
  156.         -i "{RIncludes}"                        ∂
  157.         -d MPW=1                                ∂
  158.         {Src}NCRDriver.r
  159.  
  160. "NCRDriver MPW_815"    ƒƒ                            ∂
  161.             MetroWerks                            ∂
  162.             Makefile                            ∂
  163.             {Headers}                            ∂
  164.             {Objects}
  165.     echo "" >{Obj}NotUsedExportList
  166.     Compilation_Hardware = {NCR53C815}
  167.     touch "{Src}NCR53C825.h"            # Force recompile
  168.     PPCLink                                        ∂
  169.         -sym {SymOpt}                            ∂
  170.         -xm s                                    ∂
  171.         -main DoDriverIO                        ∂
  172.         -export DoDriverIO                        ∂
  173.         -export TheDriverDescription            ∂
  174.         -export CFMInitialize                    ∂
  175.         -export CFMTerminate                    ∂
  176.         {Objects}                                ∂
  177.         "{LogLibraryLib}"LogLibrary                ∂
  178.         "{PCILibraries}"DriverServicesLib        ∂
  179.         "{PCILibraries}"DriverLoaderLib            ∂
  180.         "{PCILibraries}"NameRegistryLib            ∂
  181.         "{PCILibraries}"PCILib                    ∂
  182.         "{PPCLibraries}"PPCCRuntime.o            ∂
  183.         -o {Obj}NCRDriver.xcoff
  184.     MakePEF                                        ∂
  185.         {Obj}NCRDriver.xcoff                    ∂
  186.         -b                                        ∂
  187.         -i CFMInitialize                        ∂
  188.         -t CFMTerminate                            ∂
  189.         -l "{PCILibraries}"DriverServicesLib    ∂
  190.         -l "{PCILibraries}"NameRegistryLib        ∂
  191.         -l "{PCILibraries}"PCILib                ∂
  192.         -o {targ}                                ∂
  193.         -ft ndrv -fc PSSD
  194.  
  195. "NCRDriver MPW_815"    ƒƒ                            ∂
  196.             Makefile                            ∂
  197.             {Headers}                            ∂
  198.             {Src}NCRDriver.r                    ∂
  199.             "NCRDriverIcons.rsrc"
  200.     Rez                                            ∂
  201.         -o {targ}                                ∂
  202.         -append                                    ∂
  203.         -t ndrv                                    ∂
  204.         -c PSSD                                    ∂
  205.         -i "{CIncludes}"                        ∂
  206.         -i "{RIncludes}"                        ∂
  207.         -d MPW=1                                ∂
  208.         {Src}NCRDriver.r
  209.  
  210. #
  211. # This builds a project resource file for the
  212. # Metrowerks environment.
  213. #
  214. "NCRDriver.Δ.rsrc" ƒ                            ∂
  215.             Makefile                            ∂
  216.             {Headers}                            ∂
  217.             {Src}NCRDriver.r                    ∂
  218.             "NCRDriverIcons.rsrc"
  219.         Rez                                        ∂
  220.             -o {targ}                            ∂
  221.             -append                                ∂
  222.             -t rsrc                                ∂
  223.             -c RSED                                ∂
  224.             -i "{CIncludes}"                    ∂
  225.             -i "{RIncludes}"                    ∂
  226.             -d MPW=1                            ∂
  227.             {Src}NCRDriver.r
  228.  
  229. {Src}LogLibrary.h    ƒ {LogLibrarySrc}LogLibrary.h
  230.         Duplicate -y {LogLibrarySrc}LogLibrary.h {targ}
  231.  
  232. vvRpˇN^NuNVHn/. /.N∫N^NuNVMakeFileTEXTMPS <TEXTMPS <´áói3»N^NuNVˇ⁄/./. /.Hnˇ⁄N∫˛¯Xè.ÄN∫ÙN^NuNVBg/. n h"NêN^NuNV?</. n h"NêN^NuNV?</. n h"NêN^Nu o"o Ÿf¸H
  233. Courierq•†gkgk¨rœgkgkvvR    ∏∂RMPSRMWBB*ÌˇˇˇˇTRƒˇˇ